const express = require('express');
const router=express.Router();
const {addInfo,selectInfo,deleteInfo}=require('../service/recycleService');

router.post('/addInfo',async function(req,res,next) {
  console.log(req.body);
  let data=await addInfo(req.body.aTitle);
})

router.post('/selectInfo',async function(req,res,next) {
  let data=await selectInfo(req.body);
  res.send(data);
})

router.post('/deleteInfo',async function(req,res,next) {
  let data=await deleteInfo(req.body);
})
module.exports =router;